package com.wesley.spring.entity;

import org.springframework.stereotype.Component;

/**
 * Car
 *
 * @author WangPanYong
 * @since 2021/08/31 14:56
 */
@Component("car")
public class Car {
    private String brand;

    private Driver driver;

    public Car(String brand) {
        this.brand = brand;
    }

    public Car() {
    }

    public void setDriver(Driver driver) {
        this.driver = driver;
    }
}
